package io.xxx.xbutler.client;

import io.xxx.xbutler.domain.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.time.LocalDate;
import java.util.List;

@FeignClient("x-trade")
public interface TradeClient {

    @GetMapping("/trade/store/order/list")
    List<Order> getStoreOrders(@RequestParam Long storeId, @RequestParam LocalDate date);
}
